#ifndef  __SERIAL_TO_PARALLEL_CONVERTOR_PORTS__
#define  __SERIAL_TO_PARALLEL_CONVERTOR_PORTS__

#include "S2P_porting.h"

/// Please call this init() in your global init()
extern void S2P_P_Init(void);

/// Please cyclically call this task and specify the cycle in porting.h
extern void S2P_P_Task(void);

/// Please call your send interface inside this
extern RES S2P_R_WriteSerialData(U8 * buffer, U16 offset, U16 length);

/// Please call your send interface inside this
extern RES S2P_R_PeekSerialData(void);

/// Please call your send interface inside this
extern RES S2P_R_ReadSerialData(U8 * buffer, U16 offset, U16 length);

#endif  //  __SERIAL_TO_PARALLEL_CONVERTOR_PORTS__

